#include "SearchKeyStructure.h"
//#include <iostream>
//using namespace std;

SearchKeyStructure::SearchKeyStructure():keyOfOrigin(""),keyOfContents("")
{
}

void SearchKeyStructure::SetKeyValues( string keyOfOrigin, string keyOfContents )
{
	this->keyOfOrigin = keyOfOrigin;
	this->keyOfContents = keyOfContents;
}

SearchKeyStructure::~SearchKeyStructure()
{
}

SearchKeyStructure::SearchKeyStructure(const SearchKeyStructure& source):
keyOfOrigin(source.keyOfOrigin), keyOfContents(source.keyOfContents)
{
	
}

SearchKeyStructure& SearchKeyStructure::operator = (const SearchKeyStructure& source )
{
	this->keyOfOrigin = source.keyOfOrigin;
	this->keyOfContents = source.keyOfContents;

	return (*this);
}

bool SearchKeyStructure::operator == (const SearchKeyStructure& source )
{
	bool flag = false;

	if( this->keyOfContents == source.keyOfContents &&
			this->keyOfOrigin == source.keyOfOrigin )
	{
		flag = true;
	}

	return flag;
}

bool SearchKeyStructure::operator != (const SearchKeyStructure& source )
{
	bool flag = true;

	if( this->keyOfContents == source.keyOfContents &&
			this->keyOfOrigin == source.keyOfOrigin )
	{
		flag = false;
	}
	
	return flag;
}


#if 0
int main()
{
	SearchKeyStructure sks;
	sks.SetKeyValues("constents", "origin");
	cout<<" constskey : "<<sks.GetKeyOfContents()<<endl;
	cout<<" orginkey : "<<sks.GetKeyOfOrigin()<<endl;
	
	return 0;
}

#endif



